package cn.yanjr.common;

import java.time.format.DateTimeFormatter;

/**
 * 常量类
 * 
 * @author Ryan
 *
 */
public class Constant {
	
	public final static String SERVER_IP = "";
	/**
	 * 缓存中任务对象的前缀
	 */
	public final static String CACHE_TASK_PREFIX = "TASK_";
	/**
	 * 主进程巡检间隔时间
	 */
	public final static long MAIN_SLEEP_TIME = 3000L;

	
	public final static String DEFAULT_CHARSET = "UTF-8";
	public final static String ISO_8859_1_CHARSET = "ISO-8859-1";
	
	
	/**
     * 验证码过期时间 此处为五分钟
     */
    public static Integer CODE_EXPIRE_TIME = 60 * 5;

    /**
     * jwtToken过期时间 默认为1天
     * public static Integer TOKEN_EXPIRE_TIME = 1 * 24 * 60 * 60 * 1000;
     */
    public static Long TOKEN_EXPIRE_TIME = 1 * 24 * 60 * 60 * 1000L;

    /**
     * token请求头名称
     */
    public static String TOKEN_HEADER_NAME = "authorization";

	/**
	 * 标准日期时间格式
	 */
	public static final DateTimeFormatter COMMON_DATETIME_FORMAT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
}
